package cn.com.suiyi.shixingshengxian.httputils;

import java.util.Map;

import cn.com.suiyi.shixingshengxian.url.Url;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;

import retrofit2.http.Path;

import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/7/19.
 */
public interface IRetrofitHttp {

    @POST("/SHWeixinData.asmx/GetNewActives?")
    Call<ResponseBody> getActive(@QueryMap() Map<String,String> map);


    @GET(Url.VEGETABLE_TOP+Url.VEGETABLE_BOTTOM)
    Call<ResponseBody> getHomeVegetable();

    @GET(Url.FLASHSALE_TOP+Url.FLASHSALE_BOTTOM)
    Call<ResponseBody> getFlashSale();
    @GET(Url.IMAGE_TOP+Url.IMAGE_BOTTOM)
    Call<ResponseBody> getImage();

    @GET(Url.COMMODITY_TOP+"{path}"+Url.COMMODITY_BOTTOM)
    Call<ResponseBody> getCommodit(@Path("path") String path);

    @GET("SHWeixinData.asmx/GetNewActives?"
            +
            "json=%7B%22os%22%3A%224.4.4%22%2C%22page_size%22%3A10%2C%22device%22%3A%225%22%2C%22pageindex%22%3A1%2C%22api%22%3A%221%22%2C%22deviceid%22%3A%22863092024407994%22%2C%22version%22%3A%223.3.6%22%2C%22size%22%3A640%7D"
    )
    Call<ResponseBody> getActive();

    @GET(Url.MINE_MESSAGE+"json="+Url.MINE_MESSAGE_POST)
    Call<ResponseBody> getMineMessage();

}
